package com.endlessblue.visa.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.endlessblue.visa.mapper.VisaHistoryMapper;
import com.endlessblue.visa.model.VisaHistory;
import com.endlessblue.visa.model.VisaHistoryExample;
import com.endlessblue.visa.service.VisaHistoryService;

@Service
public class VisaHistoryServiceImpl implements VisaHistoryService{
	
	@Resource
	private VisaHistoryMapper visaHistoryMapper;
	
	@Override
	public int countByExample(VisaHistoryExample example) {
		return visaHistoryMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(VisaHistoryExample example) {
		return visaHistoryMapper.deleteByExample(example);
	}


	@Override
	public int insert(VisaHistory record) {
		return visaHistoryMapper.insert(record);
	}

	@Override
	public int insertSelective(VisaHistory record) {
		return visaHistoryMapper.insertSelective(record);
	}


	@Override
	public List<VisaHistory> selectByExample(VisaHistoryExample example) {
		return visaHistoryMapper.selectByExample(example);
	}


	@Override
	public int updateByExampleSelective(VisaHistory record, VisaHistoryExample example) {
		return visaHistoryMapper.updateByExampleSelective(record, example);
	}


	@Override
	public int updateByExample(VisaHistory record, VisaHistoryExample example) {
		return visaHistoryMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(VisaHistory record) {
		return visaHistoryMapper.updateByPrimaryKeySelective(record);
	}


	@Override
	public int updateByPrimaryKey(VisaHistory record) {
		return visaHistoryMapper.updateByPrimaryKey(record);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return visaHistoryMapper.deleteByPrimaryKey(id);
	}

	@Override
	public VisaHistory selectByPrimaryKey(String id) {
		return visaHistoryMapper.selectByPrimaryKey(id);
	}

}
